package com.atguigu.controller;

import com.atguigu.vo.DataSourceProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DataSourceController {
    @Autowired
    private DataSourceProperties dataSourceProperties;
    @RequestMapping("/hello")
    public String hello(){
        System.out.println(dataSourceProperties);
        return "ok";
    }
}
